{% extends 'base.html' %}
{% load markup %}

{% block title %}UCSB Department{% endblock %}

{% block content %}
    {% for u in units %}
    <h3>{{u.title}}</h3>
      <ul>
      {% for e in u.employees.all %}
         <li><a href="{{e.get_absolute_url}}">{{e.name_first}} {{e.name_last}}</a> - {{e.job_title}} - (805)893-{{e.phone}}</li>
      {% endfor%}
      </ul>
    {% endfor %}

{% endblock %}